<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-touch-fullscreen" content="no">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
	<title>新型冠状病毒肺炎|宁夏疫情地图</title>
	<link rel="stylesheet" type="text/css" href="css/feiyan.css">
	<script type="text/javascript" src="js/echarts-all.js"></script>
</head>
<body>
	<!-- <div>{{$hasCache}}</div> -->
	<div class="header">
	    <div class="header_container">
	        <div class="title"></div>
	        <div class="logo"></div>
	        <div class="update_time">截至{{$date}}</div>
	        <div class="summary_title">宁夏疫情</div>
	        <div class="summary">
	            <div class="column">
	                <div class="number">{{$data['yesterdayIncreased']['confirmedCount']}}</div>
	                <div class="column_type newcase">今日新增</div>
	            </div>
	            <div class="column">
	                <div class="number sum">{{$data['confirmedCount']}}</div>
	                <div class="column_type totalcase">累计确诊</div>
	            </div>
	            <div class="column">
	                <div class="number">{{$data['curedCount']}}</div>
	                <div class="column_type hospital">累计出院</div>
	            </div>
	            <div class="column column_last">
	                <div class="number">{{$data['deadCount']}}</div>
	                <div class="column_type death">累计死亡</div>
	            </div>
	        </div>
	    </div>
	</div>
	<div class="map" style="margin-top: 5px;">
		<div class="main_map" id="main_map" style="width: 96%;height: 620px;background-color: rgba(255,255,255,255);"></div>
	</div>
	<div class="table" style="width: 96%; margin: 0px auto;">
		<div class="table_head_container table_head_container_0">
			<div class="table_head" style="line-height: 30px; background: rgb(255, 255, 255); font-size: 12px; font-weight: 900; border-radius: 10px 10px 0px 0px; height: 40px; border-bottom: 0.5px solid rgb(155, 203, 224); position: relative; top: 0px;">
				<div class="col col_0" style="display: inline-block;width: 20%; height: 40px; padding: unset; border-right: 0.5px solid rgb(155, 203, 224); text-align: center; color: rgb(26, 26, 26); position: relative;">
					<span class="table_head_span" style="display: inline-block; position: absolute; top: 50%; margin-left: -12px; left: 50%; margin-top: -15px;">市别</span>
				</div>
				<div class="col col_1" style="display: inline-block; width: 16%; height: 40px; padding: 0px 2.5px; border-right: 0.5px solid rgb(155, 203, 224); text-align: center; color: rgb(5, 167, 211); line-height: 14px; position: relative;">
					<span class="table_head_span" style="display: inline-block; position: absolute; top: 50%; margin-left: -12px; left: 50%; margin-top: -14px;">累计<br>确诊</span>
				</div>
				<div class="col col_2" style="display: inline-block; width: 16%; height: 40px; padding: 0px 2.5px; border-right: 0.5px solid rgb(155, 203, 224); text-align: center; color: rgb(44, 80, 176); line-height: 14px; position: relative;">
					<span class="table_head_span" style="display: inline-block; position: absolute; top: 50%; margin-left: -12px; left: 50%; margin-top: -14px;">累计<br>疑似</span>
				</div>
				<div class="col col_3" style="display: inline-block; width: 16%; height: 40px; padding: 0px 2.5px; border-right: 0.5px solid rgb(155, 203, 224); text-align: center; color: rgb(74, 176, 79); line-height: 14px; position: relative;">
					<span class="table_head_span" style="display: inline-block; position: absolute; top: 50%; margin-left: -12px; left: 50%; margin-top: -14px;">出院<br>人数</span></div>
				<div class="col col_4" style="display: inline-block; width: 16%; height: 40px; padding: 0px 2.5px; border-right: unset; text-align: center; color: rgb(229, 57, 52); line-height: 14px; position: relative;"><span class="table_head_span" style="display: inline-block; position: absolute; top: 50%; margin-left: -12px; left: 50%; margin-top: -14px;">累计<br>死亡</span>
				</div>
			</div>
			<div class="table_container table_container_0" style="background: rgb(255, 255, 255);">
				<div class="table_box table_box_0">
					@foreach($data['cities'] as $city)
					<div class="table_province_box table_province_box_0" style="line-height: 35px; font-size: 14px; font-weight: bold; background: rgb(243, 250, 255); border-bottom: 0.5px solid rgb(155, 203, 224);margin-top: -9px">
						<div class="col col_0 col_0_0_0" style="position: relative; display: inline-block;width:20%;height: 35px; border-right: 0.5px solid rgb(155, 203, 224); text-align: center; color: rgb(26, 26, 26);"><span style="display: inline-block; opacity: 1;text-overflow : ellipsis;white-space: nowrap">{{$city['cityName']}}</span>
						</div>
						<div class="col col_1 col_1_0_0" style="display: inline-block; width: 16%; height: 35px; padding: 0px 2.5px; border-right: 0.5px solid rgb(155, 203, 224); text-align: right; color: rgb(5, 167, 211);"><span style="display: inline-block; opacity: 1; position: relative; right: 11.25px;">{{$city['confirmedCount']}}</span>
						</div>
						<div class="col col_2 col_2_0_0" style="display: inline-block; width: 16%; height: 35px; padding: 0px 2.5px; border-right: 0.5px solid rgb(155, 203, 224); text-align: right; color: rgb(44, 80, 176);"><span style="display: inline-block; opacity: 1; position: relative; right: 8.75px;">{{$city['suspectedCount']}}</span>
						</div>
						<div class="col col_3 col_3_0_0" style="display: inline-block; width: 16%; height: 35px; padding: 0px 2.5px; border-right: 0.5px solid rgb(155, 203, 224); text-align: right; color: rgb(74, 176, 79);"><span style="display: inline-block; opacity: 1; position: relative; right: 15.25px;">{{$city['curedCount']}}</span>
						</div>
						<div class="col col_4 col_4_0_0" style="display: inline-block; width: 16%; height: 35px; padding: 0px 2.5px; border-right: unset; text-align: right; color: rgb(229, 57, 52);"><span style="display: inline-block; opacity: 1; position: relative; right: 15.5px;">{{$city['deadCount']}}</span>
						</div>
					</div>
					@endforeach
				
				</div>
			</div>
		</div>
	</div>	
	<!-- <div>
		<div class="main_map" id="stack" style="width: 96%;height: 500px"></div>
	</div> -->
	<script type="text/javascript">
		var myChartMap = echarts.init(document.getElementById('main_map'));
		// var myChartStack = echarts.init(document.getElementById('stack'));
		myChartMap.setOption({
			backgroundColor:'white',
		    series: [{
		    	type:'map',
		        mapType: '宁夏',
		        name:'确诊人数',
		        roam: false,
		        itemStyle:{
                    normal:{
                    	label:{show:true,textStyle: {color: "rgb(249, 249, 249)"}},	
                    },
                    emphasis:{label:{show:true},
                	}
                },
		        data:[
	                {name: '银川市(含宁东)',value: {{$cities['yc']+$cities['nd']}}},
	                {name: '石嘴山市',value: {{$cities['szs']}}},
	                {name: '吴忠市',value: {{$cities['wz']}}},
	                {name: '中卫市',value: {{$cities['zw']}}},
	                {name: '固原市',value: {{$cities['gy']}}}
            	]
		    }],
	        tooltip : {
	            trigger: 'item'
	        },
	        dataRange: {
	            x: 'left',
	            y: 'top',
	            splitList: [
	                {start: 100,label: '>100',color: '#660000'},
	                {start: 50, end: 100, label: '50-100',color: '#993300'},
	                {start: 20, end: 50, label: '20-50',color: '#cc3300'},
	                {start: 10, end: 20, label: '10-20',color: '#ff6633'},
	                {start: 5, end: 10, label: '5-10',color: '#FFA500'},
	                {start: 1, end: 5, label: '1-5',color: '#ffcc99'},
	                {end: 1, label: '0',color: '#66ff99'},

	            ],
	            color: ['#E0022B', '#E09107', '#A3E00B']
	        },
	        
		});
		// myChartStack.setOption({
		// 	title : {
		//         text: '宁夏疫情趋势',
		//         subtext: '单位:例'
		//     },
		//     tooltip : {
		//         trigger: 'axis'
		//     },
		//     calculable : true,
		//     xAxis : [
		//         {
		//             type : 'category',
		//             boundaryGap : false,
		//             data : getDate()
		//         }
		//     ],
		//     yAxis : [
		//         {
		//         	position:'right',
		//             type : 'value',
		//             axisLabel : {
		//                 formatter: '{value}'
		//             }
		//         }
		//     ],
		//     series : [
		//         {
		//             name:'最高气温',
		//             type:'line',
		//             data:[11, 11, 15, 13, 12, 13, 10],
		//             markPoint : {
		//                 data : [
		//                     {type : 'max', name: '最大值'},
		//                     {type : 'min', name: '最小值'}
		//                 ]
		//             },
		//             markLine : {
		//                 data : [
		//                     {type : 'average', name: '平均值'}
		//                 ]
		//             }
		//         },
		//     ]
		// })
	</script>
</body>
</html>